package com.jinke.api.modules.ums.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.jinke.api.modules.app.enums.ChannelStatus;
import com.jinke.api.modules.base.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 后台用户表
 * </p>
 *
 * @author macro
 * @since 2020-08-21
 */
@Data
//@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class ChannelVO extends BaseEntity implements Serializable {
    @ApiModelProperty(value = "运输服务名称")
    private Integer id;
    @ApiModelProperty(value = "运输服务Code")
    private String channelName;
    private String serviceCode;
    @ApiModelProperty(value = "运输服务平台")
    private Integer channelPlatformId;
    //运输服务平台名
    private String channelPlatformName;
    private Integer isBest;

    private Integer platformRate;
    @ApiModelProperty(value = "运输服务Code")
    private String channelCode;
    @ApiModelProperty(value = "货运商")
    private Integer channelCarrierId;
    @ApiModelProperty(value = "溢价比例")
    private BigDecimal rate;
    @ApiModelProperty(value = "溢价")
    private BigDecimal price;
    @ApiModelProperty(value = "原始名称")
    private String channelOriginName;
    private Integer channelId;
    private ChannelStatus status;
    @ApiModelProperty(value = "地址ID")
    private String uuid;

    @ApiModelProperty(value = "备注")
    private String note;

    //邮编
    private String postCard;
    public ChannelVO(String channelPlatformName) {
//        this.id = id;
//        this.channelName = channelName;
//        this.serviceCode = serviceCode;
//        this.channelPlatformId = channelPlatformId;
        this.channelPlatformName = channelPlatformName;
    }

    public ChannelVO( ) {

    }
}
